package com.xgc.common.config;

import java.util.HashMap;
import java.util.Map;

/**
 * 常量定义
 */
public class Constan {
    // 管理员
    String ADMIN_USER = "admin";

    /********************* 审批流程 *************************/
    /**
     * 1.保存
     * 2.提交
     * 3.审批（财务）
     * 4.审批（仓库）
     *
     */
    public static final String STATUS_1000 = "1000";// 生效
    public static final String STATUS_1001 = "1001";// 无效
    public static final String STATUS_1002 = "1002";// （财务）审批通过
    public static final String STATUS_1003 = "1003";// （财务）审批不通过
    public static final String STATUS_1004 = "1004";// （仓库）确认通过
    public static final String STATUS_1005 = "1005";// （仓库）确认不通过

    public static final Map<String,String> ORDER_STATUS_MAP = new HashMap<>();
    static {
        ORDER_STATUS_MAP.put(STATUS_1000,"生效");
        ORDER_STATUS_MAP.put(STATUS_1001,"无效");
        ORDER_STATUS_MAP.put(STATUS_1002,"（财务）审批通过");
        ORDER_STATUS_MAP.put(STATUS_1003,"（财务）审批不通过");
        ORDER_STATUS_MAP.put(STATUS_1004,"（仓库）确认通过");
        ORDER_STATUS_MAP.put(STATUS_1005,"（仓库）确认不通过");
    }

    /********************** 付款账单状态 *********************************/
    public static final String OUTCOME_STATUS_1000 = "1000";// 未付款
    public static final String OUTCOME_STATUS_1001 = "1001";// 已付款
    public static final String OUTCOME_STATUS_1002 = "1002";// 已回款（采购退货，供应商退款）

    /*********************** 收款账单状态 ****************************************/
    public static final String INCOME_STATUS_1000 = "1000";// 未收款
    public static final String INCOME_STATUS_1001 = "1001";// 已收款
    public static final String INCOME_STATUS_1002 = "1002";// 已退款（销售退货，退款给客户）

    /*********************** 主键序列 ********************************************/
    public static final String SEQ_PURCHASE_ORDER = "SEQ_PURCHASE_ORDER";// 采购单
    public static final String SEQ_PURCHASE_DETAIL = "SEQ_PURCHASE_DETAIL";// 采购单明细
    public static final String SEQ_OUTCOME_DETAIL = "SEQ_OUTCOME_DETAIL";// 支出明细
    public static final String SEQ_ENTITY = "SEQ_ENTITY";// 物品
    public static final String SEQ_CUSTOMER = "SEQ_CUSTOMER";// 客户
    public static final String SEQ_SUPPLIER = "SEQ_SUPPLIER";// 供应商
    public static final String SEQ_SELL_ORDER = "SEQ_SELL_ORDER";// 销售单
    public static final String SEQ_SELL_DETAIL = "SEQ_SELL_DETAIL";// 销售单明细
    public static final String SEQ_INCOME_DETAIL = "SEQ_INCOME_DETAIL";// 收入明细
    public static final String SEQ_PAYMENT_WAY = "SEQ_PAYMENT_WAY";// 支付方式

}